home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
etc
/
getlogin.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-21
|
407b
|
22 lines
/*
* getlogin.c --
*
* Emulate the UNIX getlogin() function. Since we have no /etc/utmp,
* we have to rely on the USER envariable being set correctly...
*
* Copyright (c) 1987 by the Regents of the University of Californai
* All Rights Reserved
*/
#include <sprite.h>
#include <proc.h>
char *
getlogin()
{
char *name;
extern char *getenv();
name = getenv("USER");
return (name);
}